//rem
(function (doc, win) {
    var docEl = doc.documentElement,
        resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
        recalc = function () {
            var clientWidth = docEl.clientWidth;
            if (!clientWidth) return;
            if(clientWidth>=640){
                docEl.style.fontSize = '100px';
            }else{
                docEl.style.fontSize = 100 * (clientWidth / 640) + 'px';
            }
        };
    if (!doc.addEventListener) return;
    win.addEventListener(resizeEvt, recalc, false);
    doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);

//获取时间
function getLocalTime(nS) {
    if(nS==''){
        return '';
    }else{
        var d=new Date(parseInt(nS)*1000);
        var year=d.getFullYear();
        var month=d.getMonth()+1;
        month=(month<10 ? "0"+month:month);
        var date=d.getDate();
        var h=d.getHours();
        var m=d.getMinutes();
        return year+'/'+month+'/'+date+' '+h+':'+m;
    }
}